package yaner.hotel.manager.resource.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import yaner.hotel.manager.common.dto.room.RoomAddDto;
import yaner.hotel.manager.common.dto.room.RoomUpdateDto;
import yaner.hotel.manager.common.vo.RoomVo;
import yaner.hotel.manager.resource.entity.Room;

@Mapper
public interface IRoomMapper {
    IRoomMapper INSTANCE = Mappers.getMapper(IRoomMapper.class);

    RoomVo toVo(Room room);

    Room toAddEntity(RoomAddDto roomAddDto);

    Room toUpdateEntity(RoomUpdateDto roomUpdateDto);
}
